//
//  HomeHeaderScrollCollectionViewCell.m
//  ZJControlsClass
//
//  Created by apple on 2024/11/2.
//

#import "HomeHeaderScrollCollectionViewCell.h"

@implementation HomeHeaderScrollCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self.contentView addSubview:self.img];
        [self.img mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).with.offset(ALIGN_WIDTH_PT(10));
            make.right.equalTo(self.contentView).with.offset(-ALIGN_WIDTH_PT(10));
            make.top.bottom.equalTo(self.contentView);
        }];
        
        
    }
    return self;
}


-(UIImageView *)img{
    if (!_img) {
        _img = [UIImageView new];
        _img.image = [UIImage imageNamed:@"banner"];
    }
    return _img;
}



@end
